package howl.types;

import java.util.List;



import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.Query;

import compiler.HowlType;
import compiler.PMF;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class DataProvider{

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private String Name;

	@Persistent
	private Long FeedOwner;

	@Persistent
	private double Longitude;

	@Persistent
	private double Latitude;

	public DataProvider(String name, Long FeedOwner, double longitude, double latitude) {
		super();
		Longitude = longitude;
		Latitude = latitude;
		this.FeedOwner = FeedOwner;
		Name = name;
	}

	public DataProvider(String Name, double longitude, double latitude) {
		super();
		this.Latitude = latitude;
		this.Longitude = longitude;
		this.Name = Name;
	}

	public DataProvider() {
		super();
	}

	public double getLongitude() {
		return Longitude;
	}

	public void setLongitude(double longitude) {
		Longitude = longitude;
	}

	public double getLatitude() {
		return Latitude;
	}

	public void setLatitude(double latitude) {
		Latitude = latitude;
	}

	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	@Override
	public String toString() {
		return "Sensor [Latitude=" + Latitude + ", Longitude=" + Longitude
				+ ", Name=" + Name + "]";
	}

	public Long getFeedOwner() {
		return FeedOwner;
	}

	public void setFeedOwner(Long feedOwner) {
		FeedOwner = feedOwner;
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

}
